<?php

namespace app\admins\model;

use think\Model;

class Admin extends Model
{
    protected $pk = 'id';
    protected $name = 'admin';

    // 模型字段
    protected $schema = [
        'id' => 'int',
        'gid' => 'int',
        'username' => 'string',
        'password' => 'string',
        'ispasswd' => 'int',
        'avatar' => 'string',
        'realname' => 'string',
        'phone' => 'string',
        'lastlogin' => 'int',
        'add_time' => 'int',
        'remember_token' => 'string',
        'status' => 'int'
    ];
}
